﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Data;
using System.Data.SqlClient;
using QLCONGNOLIBS.Securities;
using QLCONGNOLIBS.Models.EntityFW;

namespace QLCONGNOLIBS.Controllers
{
    public class CustomerControllers : BaseControllers<ICustomer>
    {        
        public CustomerControllers(SqlConnection objConnection, SecurityEntity objSecurity)
                    : base(objConnection, objSecurity){ }

        public override DataTable ExecOfGetElements()
        {
            return m_objCustModels.GetElements();
        }

        public override bool ExecOfInsertUpdateElement(ICustomer obj, short shOpt)
        {
            return m_objCustModels.InsertUpdateElement(obj, shOpt);
        }     
    }
}
